<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>

  </style>
</head>
<body>
  <form action="">
    <input type="text" placeholder="默认你填写的是莎莎">
    <button>提交</button>
  </form>
</body>
</html>
<script type="Module">
  // import * as xx from './text2.js';

import('./text2.js').then(res=>{
  console.log(res.add(2,2));
})
</script>